package com.baiyun.yunpan.dao;

import com.baiyun.yunpan.entity.Report;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author Sam
 * @date 2021/6/2 19:08
 */
public interface ReportDao {

    @Select("select * from report")
    List<Report> list();

    @Delete("delete from report where id=#{id}")
    void delete(int id);

    @Insert("insert into report values(null,#{reportname},#{covername},#{file})")
    void add(Report report);
}
